<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>StrSubstitutor (Apache Commons Lang 3.3.2 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="StrSubstitutor (Apache Commons Lang 3.3.2 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/StrSubstitutor.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/lang3/text/StrTokenizer.html" title="class in org.apache.commons.lang3.text"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/lang3/text/StrSubstitutor.html" target="_top">Frames</a></li>
<li><a href="StrSubstitutor.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.lang3.text</div>
<h2 title="Class StrSubstitutor" class="title">Class StrSubstitutor</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.lang3.text.StrSubstitutor</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">StrSubstitutor</span>
extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Substitutes variables within a string by values.
 <p>
 This class takes a piece of text and substitutes all the variables within it.
 The default definition of a variable is <code>${variableName}</code>.
 The prefix and suffix can be changed via constructors and set methods.
 <p>
 Variable values are typically resolved from a map, but could also be resolved
 from system properties, or by supplying a custom variable resolver.
 <p>
 The simplest example is to use this class to replace Java System properties. For example:
 <pre>
 StrSubstitutor.replaceSystemProperties(
      "You are running with java.version = ${java.version} and os.name = ${os.name}.");
 </pre>
 <p>
 Typical usage of this class follows the following pattern: First an instance is created
 and initialized with the map that contains the values for the available variables.
 If a prefix and/or suffix for variables should be used other than the default ones,
 the appropriate settings can be performed. After that the <code>replace()</code>
 method can be called passing in the source text for interpolation. In the returned
 text all variable references (as long as their values are known) will be resolved.
 The following example demonstrates this:
 <pre>
 Map valuesMap = HashMap();
 valuesMap.put(&quot;animal&quot;, &quot;quick brown fox&quot;);
 valuesMap.put(&quot;target&quot;, &quot;lazy dog&quot;);
 String templateString = &quot;The ${animal} jumped over the ${target}.&quot;;
 StrSubstitutor sub = new StrSubstitutor(valuesMap);
 String resolvedString = sub.replace(templateString);
 </pre>
 yielding:
 <pre>
      The quick brown fox jumped over the lazy dog.
 </pre>
 <p>
 Also, this class allows to set a default value for unresolved variables.
 The default value for a variable can be appended to the variable name after the variable
 default value delimiter. The default value of the variable default value delimiter is ':-',
 as in bash and other *nix shells, as those are arguably where the default ${} delimiter set originated.
 The variable default value delimiter can be manually set by calling <a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setValueDelimiterMatcher(org.apache.commons.lang3.text.StrMatcher)"><code>setValueDelimiterMatcher(StrMatcher)</code></a>,
 <a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setValueDelimiter(char)"><code>setValueDelimiter(char)</code></a> or <a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setValueDelimiter(java.lang.String)"><code>setValueDelimiter(String)</code></a>.
 The following shows an example with varialbe default value settings:
 <pre>
 Map valuesMap = HashMap();
 valuesMap.put(&quot;animal&quot;, &quot;quick brown fox&quot;);
 valuesMap.put(&quot;target&quot;, &quot;lazy dog&quot;);
 String templateString = &quot;The ${animal} jumped over the ${target}. ${undefined.number:-1234567890}.&quot;;
 StrSubstitutor sub = new StrSubstitutor(valuesMap);
 String resolvedString = sub.replace(templateString);
 </pre>
 yielding:
 <pre>
      The quick brown fox jumped over the lazy dog. 1234567890.
 </pre>
 <p>
 In addition to this usage pattern there are some static convenience methods that
 cover the most common use cases. These methods can be used without the need of
 manually creating an instance. However if multiple replace operations are to be
 performed, creating and reusing an instance of this class will be more efficient.
 <p>
 Variable replacement works in a recursive way. Thus, if a variable value contains
 a variable then that variable will also be replaced. Cyclic replacements are
 detected and will cause an exception to be thrown.
 <p>
 Sometimes the interpolation's result must contain a variable prefix. As an example
 take the following source text:
 <pre>
   The variable ${${name}} must be used.
 </pre>
 Here only the variable's name referred to in the text should be replaced resulting
 in the text (assuming that the value of the <code>name</code> variable is <code>x</code>):
 <pre>
   The variable ${x} must be used.
 </pre>
 To achieve this effect there are two possibilities: Either set a different prefix
 and suffix for variables which do not conflict with the result text you want to
 produce. The other possibility is to use the escape character, by default '$'.
 If this character is placed before a variable reference, this reference is ignored
 and won't be replaced. For example:
 <pre>
   The variable $${${name}} must be used.
 </pre>
 <p>
 In some complex scenarios you might even want to perform substitution in the
 names of variables, for instance
 <pre>
 ${jre-${java.specification.version}}
 </pre>
 <code>StrSubstitutor</code> supports this recursive substitution in variable
 names, but it has to be enabled explicitly by setting the
 <a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setEnableSubstitutionInVariables(boolean)"><code>enableSubstitutionInVariables</code></a>
 property to <b>true</b>.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd>
<dt><span class="strong">Version:</span></dt>
  <dd>$Id: StrSubstitutor.java 1552654 2013-12-20 13:25:37Z britter $</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#DEFAULT_ESCAPE">DEFAULT_ESCAPE</a></strong></code>
<div class="block">Constant for the default escape character.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#DEFAULT_PREFIX">DEFAULT_PREFIX</a></strong></code>
<div class="block">Constant for the default variable prefix.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#DEFAULT_SUFFIX">DEFAULT_SUFFIX</a></strong></code>
<div class="block">Constant for the default variable suffix.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#DEFAULT_VALUE_DELIMITER">DEFAULT_VALUE_DELIMITER</a></strong></code>
<div class="block">Constant for the default value delimiter of a variable.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor()">StrSubstitutor</a></strong>()</code>
<div class="block">Creates a new instance with defaults for variable prefix and suffix
 and the escaping character.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor(java.util.Map)">StrSubstitutor</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap)</code>
<div class="block">Creates a new instance and initializes it.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor(java.util.Map, java.lang.String, java.lang.String)">StrSubstitutor</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix)</code>
<div class="block">Creates a new instance and initializes it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor(java.util.Map, java.lang.String, java.lang.String, char)">StrSubstitutor</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix,
              char&nbsp;escape)</code>
<div class="block">Creates a new instance and initializes it.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor(java.util.Map, java.lang.String, java.lang.String, char, java.lang.String)">StrSubstitutor</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix,
              char&nbsp;escape,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueDelimiter)</code>
<div class="block">Creates a new instance and initializes it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor(org.apache.commons.lang3.text.StrLookup)">StrSubstitutor</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver)</code>
<div class="block">Creates a new instance and initializes it.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor(org.apache.commons.lang3.text.StrLookup, java.lang.String, java.lang.String, char)">StrSubstitutor</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix,
              char&nbsp;escape)</code>
<div class="block">Creates a new instance and initializes it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor(org.apache.commons.lang3.text.StrLookup, java.lang.String, java.lang.String, char, java.lang.String)">StrSubstitutor</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix,
              char&nbsp;escape,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueDelimiter)</code>
<div class="block">Creates a new instance and initializes it.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor(org.apache.commons.lang3.text.StrLookup, org.apache.commons.lang3.text.StrMatcher, org.apache.commons.lang3.text.StrMatcher, char)">StrSubstitutor</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;prefixMatcher,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;suffixMatcher,
              char&nbsp;escape)</code>
<div class="block">Creates a new instance and initializes it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#StrSubstitutor(org.apache.commons.lang3.text.StrLookup, org.apache.commons.lang3.text.StrMatcher, org.apache.commons.lang3.text.StrMatcher, char, org.apache.commons.lang3.text.StrMatcher)">StrSubstitutor</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;prefixMatcher,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;suffixMatcher,
              char&nbsp;escape,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;valueDelimiterMatcher)</code>
<div class="block">Creates a new instance and initializes it.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>char</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#getEscapeChar()">getEscapeChar</a></strong>()</code>
<div class="block">Returns the escape character.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#getValueDelimiterMatcher()">getValueDelimiterMatcher</a></strong>()</code>
<div class="block">Gets the variable default value delimiter matcher currently in use.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#getVariablePrefixMatcher()">getVariablePrefixMatcher</a></strong>()</code>
<div class="block">Gets the variable prefix matcher currently in use.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#getVariableResolver()">getVariableResolver</a></strong>()</code>
<div class="block">Gets the VariableResolver that is used to lookup variables.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#getVariableSuffixMatcher()">getVariableSuffixMatcher</a></strong>()</code>
<div class="block">Gets the variable suffix matcher currently in use.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#isEnableSubstitutionInVariables()">isEnableSubstitutionInVariables</a></strong>()</code>
<div class="block">Returns a flag whether substitution is done in variable names.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(char[])">replace</a></strong>(char[]&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source array as a template.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(char[], int, int)">replace</a></strong>(char[]&nbsp;source,
       int&nbsp;offset,
       int&nbsp;length)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source array as a template.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.CharSequence)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source as a template.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.CharSequence, int, int)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;source,
       int&nbsp;offset,
       int&nbsp;length)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source as a template.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.Object)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables in the given source object with
 their matching values from the resolver.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static &lt;V&gt;&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.Object, java.util.Map)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source,
       <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap)</code>
<div class="block">Replaces all the occurrences of variables in the given source object with
 their matching values from the map.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static &lt;V&gt;&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.Object, java.util.Map, java.lang.String, java.lang.String)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source,
       <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap,
       <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
       <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix)</code>
<div class="block">Replaces all the occurrences of variables in the given source object with
 their matching values from the map.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.Object, java.util.Properties)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source,
       <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;valueProperties)</code>
<div class="block">Replaces all the occurrences of variables in the given source object with their matching
 values from the properties.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(org.apache.commons.lang3.text.StrBuilder)">replace</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source builder as a template.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(org.apache.commons.lang3.text.StrBuilder, int, int)">replace</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;source,
       int&nbsp;offset,
       int&nbsp;length)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source builder as a template.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.String)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source string as a template.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.StringBuffer)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a>&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source buffer as a template.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.StringBuffer, int, int)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a>&nbsp;source,
       int&nbsp;offset,
       int&nbsp;length)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source buffer as a template.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replace(java.lang.String, int, int)">replace</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source,
       int&nbsp;offset,
       int&nbsp;length)</code>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source string as a template.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replaceIn(org.apache.commons.lang3.text.StrBuilder)">replaceIn</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables within the given source
 builder with their matching values from the resolver.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replaceIn(org.apache.commons.lang3.text.StrBuilder, int, int)">replaceIn</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;source,
         int&nbsp;offset,
         int&nbsp;length)</code>
<div class="block">Replaces all the occurrences of variables within the given source
 builder with their matching values from the resolver.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replaceIn(java.lang.StringBuffer)">replaceIn</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a>&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables within the given source buffer
 with their matching values from the resolver.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replaceIn(java.lang.StringBuffer, int, int)">replaceIn</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a>&nbsp;source,
         int&nbsp;offset,
         int&nbsp;length)</code>
<div class="block">Replaces all the occurrences of variables within the given source buffer
 with their matching values from the resolver.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replaceIn(java.lang.StringBuilder)">replaceIn</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables within the given source buffer
 with their matching values from the resolver.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replaceIn(java.lang.StringBuilder, int, int)">replaceIn</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;source,
         int&nbsp;offset,
         int&nbsp;length)</code>
<div class="block">Replaces all the occurrences of variables within the given source builder
 with their matching values from the resolver.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#replaceSystemProperties(java.lang.Object)">replaceSystemProperties</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source)</code>
<div class="block">Replaces all the occurrences of variables in the given source object with
 their matching values from the system properties.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#resolveVariable(java.lang.String, org.apache.commons.lang3.text.StrBuilder, int, int)">resolveVariable</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;variableName,
               <a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;buf,
               int&nbsp;startPos,
               int&nbsp;endPos)</code>
<div class="block">Internal method that resolves the value of a variable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setEnableSubstitutionInVariables(boolean)">setEnableSubstitutionInVariables</a></strong>(boolean&nbsp;enableSubstitutionInVariables)</code>
<div class="block">Sets a flag whether substitution is done in variable names.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setEscapeChar(char)">setEscapeChar</a></strong>(char&nbsp;escapeCharacter)</code>
<div class="block">Sets the escape character.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setValueDelimiter(char)">setValueDelimiter</a></strong>(char&nbsp;valueDelimiter)</code>
<div class="block">Sets the variable default value delimiter to use.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setValueDelimiter(java.lang.String)">setValueDelimiter</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueDelimiter)</code>
<div class="block">Sets the variable default value delimiter to use.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setValueDelimiterMatcher(org.apache.commons.lang3.text.StrMatcher)">setValueDelimiterMatcher</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;valueDelimiterMatcher)</code>
<div class="block">Sets the variable default value delimiter matcher to use.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setVariablePrefix(char)">setVariablePrefix</a></strong>(char&nbsp;prefix)</code>
<div class="block">Sets the variable prefix to use.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setVariablePrefix(java.lang.String)">setVariablePrefix</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix)</code>
<div class="block">Sets the variable prefix to use.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setVariablePrefixMatcher(org.apache.commons.lang3.text.StrMatcher)">setVariablePrefixMatcher</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;prefixMatcher)</code>
<div class="block">Sets the variable prefix matcher currently in use.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setVariableResolver(org.apache.commons.lang3.text.StrLookup)">setVariableResolver</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver)</code>
<div class="block">Sets the VariableResolver that is used to lookup variables.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setVariableSuffix(char)">setVariableSuffix</a></strong>(char&nbsp;suffix)</code>
<div class="block">Sets the variable suffix to use.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setVariableSuffix(java.lang.String)">setVariableSuffix</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix)</code>
<div class="block">Sets the variable suffix to use.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#setVariableSuffixMatcher(org.apache.commons.lang3.text.StrMatcher)">setVariableSuffixMatcher</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;suffixMatcher)</code>
<div class="block">Sets the variable suffix matcher currently in use.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#substitute(org.apache.commons.lang3.text.StrBuilder, int, int)">substitute</a></strong>(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;buf,
          int&nbsp;offset,
          int&nbsp;length)</code>
<div class="block">Internal method that substitutes the variables.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="DEFAULT_ESCAPE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_ESCAPE</h4>
<pre>public static final&nbsp;char DEFAULT_ESCAPE</pre>
<div class="block">Constant for the default escape character.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.lang3.text.StrSubstitutor.DEFAULT_ESCAPE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_PREFIX">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_PREFIX</h4>
<pre>public static final&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a> DEFAULT_PREFIX</pre>
<div class="block">Constant for the default variable prefix.</div>
</li>
</ul>
<a name="DEFAULT_SUFFIX">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_SUFFIX</h4>
<pre>public static final&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a> DEFAULT_SUFFIX</pre>
<div class="block">Constant for the default variable suffix.</div>
</li>
</ul>
<a name="DEFAULT_VALUE_DELIMITER">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DEFAULT_VALUE_DELIMITER</h4>
<pre>public static final&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a> DEFAULT_VALUE_DELIMITER</pre>
<div class="block">Constant for the default value delimiter of a variable.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="StrSubstitutor()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor()</pre>
<div class="block">Creates a new instance with defaults for variable prefix and suffix
 and the escaping character.</div>
</li>
</ul>
<a name="StrSubstitutor(java.util.Map)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap)</pre>
<div class="block">Creates a new instance and initializes it. Uses defaults for variable
 prefix and suffix and the escaping character.</div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>V</code> - the type of the values in the map</dd><dt><span class="strong">Parameters:</span></dt><dd><code>valueMap</code> - the map with the variables' values, may be null</dd></dl>
</li>
</ul>
<a name="StrSubstitutor(java.util.Map, java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix)</pre>
<div class="block">Creates a new instance and initializes it. Uses a default escaping character.</div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>V</code> - the type of the values in the map</dd><dt><span class="strong">Parameters:</span></dt><dd><code>valueMap</code> - the map with the variables' values, may be null</dd><dd><code>prefix</code> - the prefix for variables, not null</dd><dd><code>suffix</code> - the suffix for variables, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix or suffix is null</dd></dl>
</li>
</ul>
<a name="StrSubstitutor(java.util.Map, java.lang.String, java.lang.String, char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix,
              char&nbsp;escape)</pre>
<div class="block">Creates a new instance and initializes it.</div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>V</code> - the type of the values in the map</dd><dt><span class="strong">Parameters:</span></dt><dd><code>valueMap</code> - the map with the variables' values, may be null</dd><dd><code>prefix</code> - the prefix for variables, not null</dd><dd><code>suffix</code> - the suffix for variables, not null</dd><dd><code>escape</code> - the escape character</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix or suffix is null</dd></dl>
</li>
</ul>
<a name="StrSubstitutor(java.util.Map, java.lang.String, java.lang.String, char, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix,
              char&nbsp;escape,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueDelimiter)</pre>
<div class="block">Creates a new instance and initializes it.</div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>V</code> - the type of the values in the map</dd><dt><span class="strong">Parameters:</span></dt><dd><code>valueMap</code> - the map with the variables' values, may be null</dd><dd><code>prefix</code> - the prefix for variables, not null</dd><dd><code>suffix</code> - the suffix for variables, not null</dd><dd><code>escape</code> - the escape character</dd><dd><code>valueDelimiter</code> - the variable default value delimiter, may be null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix or suffix is null</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="StrSubstitutor(org.apache.commons.lang3.text.StrLookup)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver)</pre>
<div class="block">Creates a new instance and initializes it.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>variableResolver</code> - the variable resolver, may be null</dd></dl>
</li>
</ul>
<a name="StrSubstitutor(org.apache.commons.lang3.text.StrLookup, java.lang.String, java.lang.String, char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix,
              char&nbsp;escape)</pre>
<div class="block">Creates a new instance and initializes it.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>variableResolver</code> - the variable resolver, may be null</dd><dd><code>prefix</code> - the prefix for variables, not null</dd><dd><code>suffix</code> - the suffix for variables, not null</dd><dd><code>escape</code> - the escape character</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix or suffix is null</dd></dl>
</li>
</ul>
<a name="StrSubstitutor(org.apache.commons.lang3.text.StrLookup, java.lang.String, java.lang.String, char, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix,
              char&nbsp;escape,
              <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueDelimiter)</pre>
<div class="block">Creates a new instance and initializes it.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>variableResolver</code> - the variable resolver, may be null</dd><dd><code>prefix</code> - the prefix for variables, not null</dd><dd><code>suffix</code> - the suffix for variables, not null</dd><dd><code>escape</code> - the escape character</dd><dd><code>valueDelimiter</code> - the variable default value delimiter string, may be null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix or suffix is null</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="StrSubstitutor(org.apache.commons.lang3.text.StrLookup, org.apache.commons.lang3.text.StrMatcher, org.apache.commons.lang3.text.StrMatcher, char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;prefixMatcher,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;suffixMatcher,
              char&nbsp;escape)</pre>
<div class="block">Creates a new instance and initializes it.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>variableResolver</code> - the variable resolver, may be null</dd><dd><code>prefixMatcher</code> - the prefix for variables, not null</dd><dd><code>suffixMatcher</code> - the suffix for variables, not null</dd><dd><code>escape</code> - the escape character</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix or suffix is null</dd></dl>
</li>
</ul>
<a name="StrSubstitutor(org.apache.commons.lang3.text.StrLookup, org.apache.commons.lang3.text.StrMatcher, org.apache.commons.lang3.text.StrMatcher, char, org.apache.commons.lang3.text.StrMatcher)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>StrSubstitutor</h4>
<pre>public&nbsp;StrSubstitutor(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;prefixMatcher,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;suffixMatcher,
              char&nbsp;escape,
              <a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;valueDelimiterMatcher)</pre>
<div class="block">Creates a new instance and initializes it.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>variableResolver</code> - the variable resolver, may be null</dd><dd><code>prefixMatcher</code> - the prefix for variables, not null</dd><dd><code>suffixMatcher</code> - the suffix for variables, not null</dd><dd><code>escape</code> - the escape character</dd><dd><code>valueDelimiterMatcher</code> - the variable default value delimiter matcher, may be null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix or suffix is null</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="replace(java.lang.Object, java.util.Map)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public static&nbsp;&lt;V&gt;&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source,
                 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap)</pre>
<div class="block">Replaces all the occurrences of variables in the given source object with
 their matching values from the map.</div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>V</code> - the type of the values in the map</dd><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the source text containing the variables to substitute, null returns null</dd><dd><code>valueMap</code> - the map with the values, may be null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(java.lang.Object, java.util.Map, java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public static&nbsp;&lt;V&gt;&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source,
                 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,V&gt;&nbsp;valueMap,
                 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix,
                 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix)</pre>
<div class="block">Replaces all the occurrences of variables in the given source object with
 their matching values from the map. This method allows to specifiy a
 custom variable prefix and suffix</div>
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>V</code> - the type of the values in the map</dd><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the source text containing the variables to substitute, null returns null</dd><dd><code>valueMap</code> - the map with the values, may be null</dd><dd><code>prefix</code> - the prefix of variables, not null</dd><dd><code>suffix</code> - the suffix of variables, not null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix or suffix is null</dd></dl>
</li>
</ul>
<a name="replace(java.lang.Object, java.util.Properties)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source,
             <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;valueProperties)</pre>
<div class="block">Replaces all the occurrences of variables in the given source object with their matching
 values from the properties.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the source text containing the variables to substitute, null returns null</dd><dd><code>valueProperties</code> - the properties with values, may be null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replaceSystemProperties(java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceSystemProperties</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replaceSystemProperties(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables in the given source object with
 their matching values from the system properties.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the source text containing the variables to substitute, null returns null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source string as a template.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the string to replace in, null returns null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(java.lang.String, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source,
             int&nbsp;offset,
             int&nbsp;length)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source string as a template.
 <p>
 Only the specified portion of the string will be processed.
 The rest of the string is not processed, and is not returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the string to replace in, null returns null</dd><dd><code>offset</code> - the start offset within the array, must be valid</dd><dd><code>length</code> - the length within the array to be processed, must be valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(char[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(char[]&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source array as a template.
 The array is not altered by this method.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the character array to replace in, not altered, null returns null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(char[], int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(char[]&nbsp;source,
             int&nbsp;offset,
             int&nbsp;length)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source array as a template.
 The array is not altered by this method.
 <p>
 Only the specified portion of the array will be processed.
 The rest of the array is not processed, and is not returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the character array to replace in, not altered, null returns null</dd><dd><code>offset</code> - the start offset within the array, must be valid</dd><dd><code>length</code> - the length within the array to be processed, must be valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(java.lang.StringBuffer)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a>&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source buffer as a template.
 The buffer is not altered by this method.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the buffer to use as a template, not changed, null returns null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(java.lang.StringBuffer, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a>&nbsp;source,
             int&nbsp;offset,
             int&nbsp;length)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source buffer as a template.
 The buffer is not altered by this method.
 <p>
 Only the specified portion of the buffer will be processed.
 The rest of the buffer is not processed, and is not returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the buffer to use as a template, not changed, null returns null</dd><dd><code>offset</code> - the start offset within the array, must be valid</dd><dd><code>length</code> - the length within the array to be processed, must be valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(java.lang.CharSequence)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source as a template.
 The source is not altered by this method.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the buffer to use as a template, not changed, null returns null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="replace(java.lang.CharSequence, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;source,
             int&nbsp;offset,
             int&nbsp;length)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source as a template.
 The source is not altered by this method.
 <p>
 Only the specified portion of the buffer will be processed.
 The rest of the buffer is not processed, and is not returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the buffer to use as a template, not changed, null returns null</dd><dd><code>offset</code> - the start offset within the array, must be valid</dd><dd><code>length</code> - the length within the array to be processed, must be valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="replace(org.apache.commons.lang3.text.StrBuilder)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source builder as a template.
 The builder is not altered by this method.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the builder to use as a template, not changed, null returns null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(org.apache.commons.lang3.text.StrBuilder, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;source,
             int&nbsp;offset,
             int&nbsp;length)</pre>
<div class="block">Replaces all the occurrences of variables with their matching values
 from the resolver using the given source builder as a template.
 The builder is not altered by this method.
 <p>
 Only the specified portion of the builder will be processed.
 The rest of the builder is not processed, and is not returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the builder to use as a template, not changed, null returns null</dd><dd><code>offset</code> - the start offset within the array, must be valid</dd><dd><code>length</code> - the length within the array to be processed, must be valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replace(java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replace</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;replace(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables in the given source object with
 their matching values from the resolver. The input source object is
 converted to a string using <code>toString</code> and is not altered.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the source to replace in, null returns null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the result of the replace operation</dd></dl>
</li>
</ul>
<a name="replaceIn(java.lang.StringBuffer)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceIn</h4>
<pre>public&nbsp;boolean&nbsp;replaceIn(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a>&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables within the given source buffer
 with their matching values from the resolver.
 The buffer is updated with the result.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the buffer to replace in, updated, null returns zero</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if altered</dd></dl>
</li>
</ul>
<a name="replaceIn(java.lang.StringBuffer, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceIn</h4>
<pre>public&nbsp;boolean&nbsp;replaceIn(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang">StringBuffer</a>&nbsp;source,
                int&nbsp;offset,
                int&nbsp;length)</pre>
<div class="block">Replaces all the occurrences of variables within the given source buffer
 with their matching values from the resolver.
 The buffer is updated with the result.
 <p>
 Only the specified portion of the buffer will be processed.
 The rest of the buffer is not processed, but it is not deleted.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the buffer to replace in, updated, null returns zero</dd><dd><code>offset</code> - the start offset within the array, must be valid</dd><dd><code>length</code> - the length within the buffer to be processed, must be valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if altered</dd></dl>
</li>
</ul>
<a name="replaceIn(java.lang.StringBuilder)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceIn</h4>
<pre>public&nbsp;boolean&nbsp;replaceIn(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables within the given source buffer
 with their matching values from the resolver.
 The buffer is updated with the result.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the buffer to replace in, updated, null returns zero</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if altered</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="replaceIn(java.lang.StringBuilder, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceIn</h4>
<pre>public&nbsp;boolean&nbsp;replaceIn(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;source,
                int&nbsp;offset,
                int&nbsp;length)</pre>
<div class="block">Replaces all the occurrences of variables within the given source builder
 with their matching values from the resolver.
 The builder is updated with the result.
 <p>
 Only the specified portion of the buffer will be processed.
 The rest of the buffer is not processed, but it is not deleted.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the buffer to replace in, updated, null returns zero</dd><dd><code>offset</code> - the start offset within the array, must be valid</dd><dd><code>length</code> - the length within the buffer to be processed, must be valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if altered</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="replaceIn(org.apache.commons.lang3.text.StrBuilder)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceIn</h4>
<pre>public&nbsp;boolean&nbsp;replaceIn(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;source)</pre>
<div class="block">Replaces all the occurrences of variables within the given source
 builder with their matching values from the resolver.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the builder to replace in, updated, null returns zero</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if altered</dd></dl>
</li>
</ul>
<a name="replaceIn(org.apache.commons.lang3.text.StrBuilder, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceIn</h4>
<pre>public&nbsp;boolean&nbsp;replaceIn(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;source,
                int&nbsp;offset,
                int&nbsp;length)</pre>
<div class="block">Replaces all the occurrences of variables within the given source
 builder with their matching values from the resolver.
 <p>
 Only the specified portion of the builder will be processed.
 The rest of the builder is not processed, but it is not deleted.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - the builder to replace in, null returns zero</dd><dd><code>offset</code> - the start offset within the array, must be valid</dd><dd><code>length</code> - the length within the builder to be processed, must be valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if altered</dd></dl>
</li>
</ul>
<a name="substitute(org.apache.commons.lang3.text.StrBuilder, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>substitute</h4>
<pre>protected&nbsp;boolean&nbsp;substitute(<a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;buf,
                 int&nbsp;offset,
                 int&nbsp;length)</pre>
<div class="block">Internal method that substitutes the variables.
 <p>
 Most users of this class do not need to call this method. This method will
 be called automatically by another (public) method.
 <p>
 Writers of subclasses can override this method if they need access to
 the substitution process at the start or end.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>buf</code> - the string builder to substitute into, not null</dd><dd><code>offset</code> - the start offset within the builder, must be valid</dd><dd><code>length</code> - the length within the builder to be processed, must be valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if altered</dd></dl>
</li>
</ul>
<a name="resolveVariable(java.lang.String, org.apache.commons.lang3.text.StrBuilder, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resolveVariable</h4>
<pre>protected&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resolveVariable(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;variableName,
                     <a href="../../../../../org/apache/commons/lang3/text/StrBuilder.html" title="class in org.apache.commons.lang3.text">StrBuilder</a>&nbsp;buf,
                     int&nbsp;startPos,
                     int&nbsp;endPos)</pre>
<div class="block">Internal method that resolves the value of a variable.
 <p>
 Most users of this class do not need to call this method. This method is
 called automatically by the substitution process.
 <p>
 Writers of subclasses can override this method if they need to alter
 how each substitution occurs. The method is passed the variable's name
 and must return the corresponding value. This implementation uses the
 <a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html#getVariableResolver()"><code>getVariableResolver()</code></a> with the variable's name as the key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>variableName</code> - the name of the variable, not null</dd><dd><code>buf</code> - the buffer where the substitution is occurring, not null</dd><dd><code>startPos</code> - the start position of the variable including the prefix, valid</dd><dd><code>endPos</code> - the end position of the variable including the suffix, valid</dd>
<dt><span class="strong">Returns:</span></dt><dd>the variable's value or <b>null</b> if the variable is unknown</dd></dl>
</li>
</ul>
<a name="getEscapeChar()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEscapeChar</h4>
<pre>public&nbsp;char&nbsp;getEscapeChar()</pre>
<div class="block">Returns the escape character.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the character used for escaping variable references</dd></dl>
</li>
</ul>
<a name="setEscapeChar(char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEscapeChar</h4>
<pre>public&nbsp;void&nbsp;setEscapeChar(char&nbsp;escapeCharacter)</pre>
<div class="block">Sets the escape character.
 If this character is placed before a variable reference in the source
 text, this variable will be ignored.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>escapeCharacter</code> - the escape character (0 for disabling escaping)</dd></dl>
</li>
</ul>
<a name="getVariablePrefixMatcher()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVariablePrefixMatcher</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;getVariablePrefixMatcher()</pre>
<div class="block">Gets the variable prefix matcher currently in use.
 <p>
 The variable prefix is the characer or characters that identify the
 start of a variable. This prefix is expressed in terms of a matcher
 allowing advanced prefix matches.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the prefix matcher in use</dd></dl>
</li>
</ul>
<a name="setVariablePrefixMatcher(org.apache.commons.lang3.text.StrMatcher)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVariablePrefixMatcher</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a>&nbsp;setVariablePrefixMatcher(<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;prefixMatcher)</pre>
<div class="block">Sets the variable prefix matcher currently in use.
 <p>
 The variable prefix is the characer or characters that identify the
 start of a variable. This prefix is expressed in terms of a matcher
 allowing advanced prefix matches.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefixMatcher</code> - the prefix matcher to use, null ignored</dd>
<dt><span class="strong">Returns:</span></dt><dd>this, to enable chaining</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix matcher is null</dd></dl>
</li>
</ul>
<a name="setVariablePrefix(char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVariablePrefix</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a>&nbsp;setVariablePrefix(char&nbsp;prefix)</pre>
<div class="block">Sets the variable prefix to use.
 <p>
 The variable prefix is the character or characters that identify the
 start of a variable. This method allows a single character prefix to
 be easily set.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefix</code> - the prefix character to use</dd>
<dt><span class="strong">Returns:</span></dt><dd>this, to enable chaining</dd></dl>
</li>
</ul>
<a name="setVariablePrefix(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVariablePrefix</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a>&nbsp;setVariablePrefix(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;prefix)</pre>
<div class="block">Sets the variable prefix to use.
 <p>
 The variable prefix is the characer or characters that identify the
 start of a variable. This method allows a string prefix to be easily set.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>prefix</code> - the prefix for variables, not null</dd>
<dt><span class="strong">Returns:</span></dt><dd>this, to enable chaining</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the prefix is null</dd></dl>
</li>
</ul>
<a name="getVariableSuffixMatcher()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVariableSuffixMatcher</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;getVariableSuffixMatcher()</pre>
<div class="block">Gets the variable suffix matcher currently in use.
 <p>
 The variable suffix is the characer or characters that identify the
 end of a variable. This suffix is expressed in terms of a matcher
 allowing advanced suffix matches.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the suffix matcher in use</dd></dl>
</li>
</ul>
<a name="setVariableSuffixMatcher(org.apache.commons.lang3.text.StrMatcher)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVariableSuffixMatcher</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a>&nbsp;setVariableSuffixMatcher(<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;suffixMatcher)</pre>
<div class="block">Sets the variable suffix matcher currently in use.
 <p>
 The variable suffix is the characer or characters that identify the
 end of a variable. This suffix is expressed in terms of a matcher
 allowing advanced suffix matches.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>suffixMatcher</code> - the suffix matcher to use, null ignored</dd>
<dt><span class="strong">Returns:</span></dt><dd>this, to enable chaining</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the suffix matcher is null</dd></dl>
</li>
</ul>
<a name="setVariableSuffix(char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVariableSuffix</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a>&nbsp;setVariableSuffix(char&nbsp;suffix)</pre>
<div class="block">Sets the variable suffix to use.
 <p>
 The variable suffix is the characer or characters that identify the
 end of a variable. This method allows a single character suffix to
 be easily set.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>suffix</code> - the suffix character to use</dd>
<dt><span class="strong">Returns:</span></dt><dd>this, to enable chaining</dd></dl>
</li>
</ul>
<a name="setVariableSuffix(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVariableSuffix</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a>&nbsp;setVariableSuffix(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;suffix)</pre>
<div class="block">Sets the variable suffix to use.
 <p>
 The variable suffix is the character or characters that identify the
 end of a variable. This method allows a string suffix to be easily set.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>suffix</code> - the suffix for variables, not null</dd>
<dt><span class="strong">Returns:</span></dt><dd>this, to enable chaining</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the suffix is null</dd></dl>
</li>
</ul>
<a name="getValueDelimiterMatcher()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValueDelimiterMatcher</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;getValueDelimiterMatcher()</pre>
<div class="block">Gets the variable default value delimiter matcher currently in use.
 <p>
 The variable default value delimiter is the characer or characters that delimite the
 variable name and the variable default value. This delimiter is expressed in terms of a matcher
 allowing advanced variable default value delimiter matches.
 <p>
 If it returns null, then the variable default value resolution is disabled.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the variable default value delimiter matcher in use, may be null</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="setValueDelimiterMatcher(org.apache.commons.lang3.text.StrMatcher)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValueDelimiterMatcher</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a>&nbsp;setValueDelimiterMatcher(<a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text">StrMatcher</a>&nbsp;valueDelimiterMatcher)</pre>
<div class="block">Sets the variable default value delimiter matcher to use.
 <p>
 The variable default value delimiter is the characer or characters that delimite the
 variable name and the variable default value. This delimiter is expressed in terms of a matcher
 allowing advanced variable default value delimiter matches.
 <p>
 If the <code>valueDelimiterMatcher</code> is null, then the variable default value resolution
 becomes disabled.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>valueDelimiterMatcher</code> - variable default value delimiter matcher to use, may be null</dd>
<dt><span class="strong">Returns:</span></dt><dd>this, to enable chaining</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="setValueDelimiter(char)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValueDelimiter</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a>&nbsp;setValueDelimiter(char&nbsp;valueDelimiter)</pre>
<div class="block">Sets the variable default value delimiter to use.
 <p>
 The variable default value delimiter is the characer or characters that delimite the
 variable name and the variable default value. This method allows a single character
 variable default value delimiter to be easily set.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>valueDelimiter</code> - the variable default value delimiter character to use</dd>
<dt><span class="strong">Returns:</span></dt><dd>this, to enable chaining</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="setValueDelimiter(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValueDelimiter</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrSubstitutor.html" title="class in org.apache.commons.lang3.text">StrSubstitutor</a>&nbsp;setValueDelimiter(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;valueDelimiter)</pre>
<div class="block">Sets the variable default value delimiter to use.
 <p>
 The variable default value delimiter is the characer or characters that delimite the
 variable name and the variable default value. This method allows a string
 variable default value delimiter to be easily set.
 <p>
 If the <code>valueDelimiter</code> is null or empty string, then the variable default
 value resolution becomes disabled.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>valueDelimiter</code> - the variable default value delimiter string to use, may be null or empty</dd>
<dt><span class="strong">Returns:</span></dt><dd>this, to enable chaining</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.2</dd></dl>
</li>
</ul>
<a name="getVariableResolver()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVariableResolver</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;getVariableResolver()</pre>
<div class="block">Gets the VariableResolver that is used to lookup variables.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the VariableResolver</dd></dl>
</li>
</ul>
<a name="setVariableResolver(org.apache.commons.lang3.text.StrLookup)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVariableResolver</h4>
<pre>public&nbsp;void&nbsp;setVariableResolver(<a href="../../../../../org/apache/commons/lang3/text/StrLookup.html" title="class in org.apache.commons.lang3.text">StrLookup</a>&lt;?&gt;&nbsp;variableResolver)</pre>
<div class="block">Sets the VariableResolver that is used to lookup variables.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>variableResolver</code> - the VariableResolver</dd></dl>
</li>
</ul>
<a name="isEnableSubstitutionInVariables()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEnableSubstitutionInVariables</h4>
<pre>public&nbsp;boolean&nbsp;isEnableSubstitutionInVariables()</pre>
<div class="block">Returns a flag whether substitution is done in variable names.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the substitution in variable names flag</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="setEnableSubstitutionInVariables(boolean)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setEnableSubstitutionInVariables</h4>
<pre>public&nbsp;void&nbsp;setEnableSubstitutionInVariables(boolean&nbsp;enableSubstitutionInVariables)</pre>
<div class="block">Sets a flag whether substitution is done in variable names. If set to
 <b>true</b>, the names of variables can contain other variables which are
 processed first before the original variable is evaluated, e.g.
 <code>${jre-${java.version}}</code>. The default value is <b>false</b>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>enableSubstitutionInVariables</code> - the new value of the flag</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/StrSubstitutor.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/lang3/text/StrMatcher.html" title="class in org.apache.commons.lang3.text"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/lang3/text/StrTokenizer.html" title="class in org.apache.commons.lang3.text"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/lang3/text/StrSubstitutor.html" target="_top">Frames</a></li>
<li><a href="StrSubstitutor.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2001&#x2013;2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>
